package hisoft.pojo;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

/**
 * @program: mybatissample2
 * @description:定义第三个实体类，包含了Order和User的信息
 * @author: wlg
 * @create: 2021-09-26 16:24:49
 **/
@Data
@NoArgsConstructor
@AllArgsConstructor
public class OrderUser extends Order {
    private String name;
    @Override
    public String toString() {
        return
                "userId=" + getUserId() +
                        ", name='" + name +
                        ",orderid=" + getId() +
                        ", order_number=" + getOrderNumber();
    }
}
